package com.tubang.logistics.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tubang.common.entity.BaseEntity;

/**
 * <p>
 * 车辆表
 * </p>
 *
 * @author wsl
 * @since 2017-12-13
 */
@TableName("tb_truck")
public class TruckEntity extends BaseEntity<TruckEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * 车主编号
     */
	@TableField("user_id")
	private String userId;
	/**
	 * 司机姓名
	 */
	@TableField("real_name")
	private String realName;
	/**
	 * 司机联系电话
	 */
	private String mobile;
	/**
	 * 公司或者平台id
	 */
	@TableField("company_id")
	private String companyId;
    /**
     * 车牌号
     */
	@TableField("truck_num")
	private String truckNum;
    /**
     * 车辆类型
     */
	@TableField("truck_type")
	private String truckType;
    /**
     * 车辆类型描述
     */
	@TableField("truck_desc")
	private String truckDesc;
    /**
     * 车辆尺寸-单位cm
     */
	@TableField("truck_length")
	private String truckLength;
    /**
     * 1认证0未认证
     */
	@TableField("truck_status")
	private String truckStatus;
	/**
	 * 驾驶证
	 */
	@TableField("drive_license")
	private String driveLicense;
	/**
	 * 营运证
	 */
	@TableField("operation_certificate")
	private String operationCertificate;
	
	/**
	 * 认证失败的原因 只有truck_status为0
	 * 才有reason字段展示
	 */
	private String reason;


	public String getUserId() {
		return userId;
	}

	public TruckEntity setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	
	public String getRealName() {
		return realName;
	}

	public TruckEntity setRealName(String realName) {
		this.realName = realName;
		return this;
	}
	
	public String getMobile() {
		return mobile;
	}

	public TruckEntity setMobile(String mobile) {
		this.mobile = mobile;
		return this;
	}
	
	public String getCompanyId() {
		return companyId;
	}
	
	public TruckEntity setCompanyId(String companyId) {
		this.companyId = companyId;
		return this;
	}

	public String getTruckNum() {
		return truckNum;
	}

	public TruckEntity setTruckNum(String truckNum) {
		this.truckNum = truckNum;
		return this;
	}

	public String getTruckType() {
		return truckType;
	}

	public TruckEntity setTruckType(String truckType) {
		this.truckType = truckType;
		return this;
	}

	public String getTruckDesc() {
		return truckDesc;
	}

	public TruckEntity setTruckDesc(String truckDesc) {
		this.truckDesc = truckDesc;
		return this;
	}

	public String getTruckLength() {
		return truckLength;
	}

	public TruckEntity setTruckLength(String truckLength) {
		this.truckLength = truckLength;
		return this;
	}

	public String getTruckStatus() {
		return truckStatus;
	}

	public TruckEntity setTruckStatus(String truckStatus) {
		this.truckStatus = truckStatus;
		return this;
	}

	public String getReason() {
		return reason;
	}

	public TruckEntity setReason(String reason) {
		this.reason = reason;
		return this;
	}
	
	public String getDriveLicense() {
		return driveLicense;
	}

	public void setDriveLicense(String driveLicense) {
		this.driveLicense = driveLicense;
	}

	public String getOperationCertificate() {
		return operationCertificate;
	}

	public void setOperationCertificate(String operationCertificate) {
		this.operationCertificate = operationCertificate;
	}

	@Override
	public String toString() {
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.append("Truck{");
		stringBuilder.append("userId=");
		stringBuilder.append(userId);
		stringBuilder.append("realName=");
		stringBuilder.append(realName);
		stringBuilder.append("mobile=");
		stringBuilder.append(mobile);
		stringBuilder.append("companyId=");
		stringBuilder.append(companyId);
		stringBuilder.append(", truckNum=");
		stringBuilder.append(truckNum);
		stringBuilder.append(", truckType=");
		stringBuilder.append(truckType);
		stringBuilder.append(", truckDesc=");
		stringBuilder.append(truckDesc);
		stringBuilder.append(", truckLength=");
		stringBuilder.append(truckLength);
		stringBuilder.append(", truckStatus=");
		stringBuilder.append(truckStatus);
		stringBuilder.append(", reason=");
		stringBuilder.append(reason);
		stringBuilder.append("}");
		return stringBuilder.toString();
	}
}
